<%--
  Created by IntelliJ IDEA.
  User: hklyq
  Date: 2019-11-04
  Time: 17:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<html>
<head>
    <title>诉讼结案审批流程</title>
    <jsp:include page="../../import.jsp" flush="true"/>
    <script src="<%=path %>/resource/lib/ueditor/ueditor.config.js" charset="utf-8" type="text/javascript"></script>
    <script src="<%=path %>/resource/lib/ueditor/ueditor.all.min.js" charset="utf-8" type="text/javascript"></script>
    <script src="<%=path %>/resource/lib/ueditor/lang/zh-cn/zh-cn.js" charset="utf-8" type="text/javascript"></script>
</head>
<body class="iframeBody">
<div class="Wrapper">
    <div id="pageInTab" class="pageInTab">
        <div tabid="tabA" title="诉讼申请单">
            <iframe frameborder="0" name="tabA" id="tabA" src=""></iframe>
        </div>
        <div tabid="tabB" title="诉讼记录">
            <iframe frameborder="0" name="tabB" id="tabB" src=""></iframe>
        </div>
    </div>
</div>

<script type="text/javascript">

    var applyId = ${applyId};
    var taskFlag = '${taskFlag}';
    var rmSvBtn = '${rmSvBtn}';
    var pageInApp = {
        flag: false //tab页验证关闭
    };//to下一级子窗口 接口
    var pageInTab = null;//页签
    var loadedTabs = [];//页签

    $(function () {
        initTab();
        pageInTab.selectTabItem("tabA");
    });

    // 初始化Tab页
    function initTab() {
        pageInTab = $("#pageInTab").ligerTab({
            height: 'auto',
            contextmenu: false,
            minIframeHeight: GET_minIframeHeight(),
            onAfterSelectTabItem: function (tabid) {
                if (loadedTabs.indexOf(tabid) < 0) {
                    loadedTabs.push(tabid);
                    switch (tabid) {
                        case "tabA":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/sue/sueApplyInfo/toAddPage.do?applyId=" + applyId + "&taskFlag=" + taskFlag + "&rmSvBtn=" + rmSvBtn);
                            break;
                        case "tabB":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/sue/sueBscInfo/toNewFlowListPage.do?applyId=" + applyId + "&taskFlag=" + taskFlag);
                            break;
                    }
                }
                ;
                SetIframe_height();
            }
        });

        $.extend(true, pageInApp, {
            pageInTab: pageInTab
        });
    }
</script>
</body>
</html>
